<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    <!--作为公共模版分离出去-->
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="admin/images/rookieCs.ico" />
    <link rel="Shortcut Icon" href="admin/images/rookieCs.ico" />
    <link rel="stylesheet" type="text/css" href="admin/static/h-ui/css/H-ui.my.css" />
    <link rel="stylesheet" type="text/css" href="admin/static/h-ui.admin.pro.iframe/css/h-ui.admin.pro.iframe.min.css" />
    <link rel="stylesheet" type="text/css" href="admin/lib/Hui-iconfont/1.0.9/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="admin/static/h-ui.admin.pro.iframe/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="admin/lib/jquery-easyui/1.7.0/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="admin/lib/jquery-easyui/1.7.0/themes/icon.css" />
    <link rel="stylesheet" type="text/css" href="admin/css/iconfont/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="admin/css/mywork.css" />
    <script type="text/javascript" src="admin/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="admin/lib/layer/3.1.1/layer.js"></script>
    <script type="text/javascript" src="admin/lib/jquery-easyui/1.7.0/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="admin/lib/jquery-easyui/1.7.0/plugins/datagrid-detailview.js"></script>
    <script type="text/javascript" src="admin/lib/jquery-easyui/1.7.0/locale/easyui-lang-zh_CN.js"></script>
    <script>document.write('<script type="text/javascript" src="admin/js/common.js?v='+ Date.now() +'"><\/script>');</script>
    <script>document.write('<script type="text/javascript" src="admin/js/formatter.js?v='+ Date.now() +'"><\/script>');</script>
    <!--作为公共模版分离出去-->
	<title>排期信息</title>
</head>
<body style="width: auto; height: auto;font-family: 微软雅黑,serif">
<!--表单元素-->
<div style="padding: 10px 10px 0px 50px">
    <form id="formInfo" method="post" style="display: none">
        <input id="id" name="id" type="hidden">
        <input id="mediumId" name="mediumId" type="hidden">
        <table class="formTable">
			<tr>
                <td class="labelTd">客户品牌：</td>
                <td class="valueTd"><input id="customerId" name="customerId" /></td>
            </tr>
			<tr>
                <td class="labelTd">执行价：</td>
                <td class="valueTd"><input id="quotedPrice" name="quotedPrice" /></td>
            </tr>
			<tr>
                <td class="labelTd">成本价：</td>
                <td class="valueTd"><input id="costPrice" name="costPrice" /></td>
            </tr>
			<tr>
                <td class="labelTd">客户税点：</td>
                <td class="valueTd"><input id="customerPoint" name="customerPoint" /></td>
            </tr>
			<tr>
                <td class="labelTd">号主税点：</td>
                <td class="valueTd"><input id="mediumPoint" name="mediumPoint" /></td>
            </tr>
			<tr>
                <td class="labelTd">客户返点：</td>
                <td class="valueTd"><input id="customerRebates" name="customerRebates" /></td>
            </tr>
			<tr>
                <td class="labelTd">号主返点：</td>
                <td class="valueTd"><input id="mediumRebates" name="mediumRebates" /></td>
            </tr>
			<tr>
                <td class="labelTd">投放日期：</td>
                <td class="valueTd"><input id="putDate" name="putDate" /></td>
            </tr>
			<tr>
                <td class="labelTd">投放位置：</td>
                <td class="valueTd"><input id="putAddress" name="putAddress" /></td>
            </tr>
			<tr>
                <td class="labelTd">是否垫付：</td>
                <td class="valueTd"><input id="isAdvance" name="isAdvance" /></td>
            </tr>
			<tr>
                <td class="labelTd">创建备注：</td>
                <td class="valueTd"><input id="createDesc" name="createDesc" /></td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    //准备函数
    $(function () {
        initForm();
    });

    //表单元素初始化
    function initForm() {
		$("#customerId").combobox({
            width: 250,
            prompt: "请选择客户品牌",
            valueField: "id",
            textField: "brand",
            editable: false,
            required: true,
            url: "customer/listSelfCustomer",
            method: "GET",
            queryParams: {},
            loadFilter: function(data) {
                return data.bizData;
            },
            onSelect: function(row) {
                $("#customerPoint").combobox("setValue", row.billPoint);
            }
        });
		$("#quotedPrice").numberbox({
            width: 250,
            prompt: "请输入执行价",
            required: true,
            precision: 2,
            validType: "length[1,16]"
        });
		$("#costPrice").numberbox({
            width: 250,
            prompt: "请输入成本价",
            required: true,
            precision: 2,
            validType: "length[1,16]"
        });
		$("#customerPoint").combobox({
            width: 250,
            prompt: "请选择客户税点",
            panelHeight: "auto",
            editable: false,
            required: true,
            data: billPointData
        });
		$("#mediumPoint").combobox({
            width: 250,
            prompt: "请选择号主税点",
            panelHeight: "auto",
            editable: false,
            required: true,
            data: billPointData
        });
		$("#customerRebates").numberbox({
            width: 250,
            prompt: "请输入客户返点",
            value: "0.00",
            required: true,
            precision: 2,
            validType: "length[1,16]"
        });
		$("#mediumRebates").numberbox({
            width: 250,
            prompt: "请输入号主返点",
            value: "0.00",
            required: true,
            precision: 2,
            validType: "length[1,16]"
        });
		$("#putDate").datebox({
            width: 250,
            prompt: "请选择投放日期",
            editable: false,
            required: true
        });
		$("#putAddress").combobox({
            width: 250,
            prompt: "请选择投放位置",
            panelHeight: "auto",
            valueField: "text",
            textField: "text",
            editable: false,
            required: true,
            data: []
        });
        $("#isAdvance").combobox({
            width: 250,
            prompt: "请选择是否垫付",
            panelHeight: "auto",
            editable: false,
            required: true,
            data: orderIsAdvanceData
        });
		$("#createDesc").textbox({
            width: 250,
            prompt: "请输入备注",
            multiline: true,
            height: 80,
            validType: "length[0,200]"
        });
		$("#formInfo").show();
    }
</script>
</body>
</html>